#ifndef __ECG_CASELIST_H__
#define __ECG_CASELIST_H__


#include "UIBase/QCDialog.h"

#include "UICondition.h"
#include "UICaseTable.h"
#include "UIHead.h"
#include "UIFooter.h"

class ECGCaseList : public QDialog
{
	Q_OBJECT
public:
	explicit ECGCaseList(QWidget* parent = 0);
	~ECGCaseList();

protected:
	void paintEvent(QPaintEvent* event);
	bool nativeEvent(const QByteArray& eventType, void* message, long* result);
	void keyPressEvent(QKeyEvent* event);
	void wheelEvent(QWheelEvent* event);
	void showEvent(QShowEvent* event);
	void hideEvent(QShowEvent* event);

public:
	void setQCGeometry(int x, int y, int w, int h);
	void initContent();

private:
	void refreshDiagnoise();

public slots:
	void onClose();
	void onQuery();
	void onTableRowClicked(int row);
	void onTableRowDoubleClicked(int row);
	void onPrevClicked();
	void onNextClicked();

private:
	QWidget* m_pBKG;
	UIHead* m_pUIHead;
	UIFooter* m_pUIFooter;
	UICondition* m_pUICondition;
	UICaseTable* m_pUICaseTable;

	QPushButton* m_pBtnQuery;

	QWidget* m_pSeperatorHor;
	QWidget* m_pSeperatorVer;

	QWidget* m_pBKGRight;
	QLabel* m_pLabelHint;
	QLabel* m_pLabelIndicatior;
	QLabel* m_pLabelDiagnoise;
private:


};

#endif // !__ECG_CASELIST_H__
